from fastapi_mcp import FastApiMCP
import uvicorn
from app import app

mcp = FastApiMCP(
        fastapi=app,
        name="weather-sse",
        description="通过城市名称（中国城市使用拼音）或经纬度获取天气信息",
        describe_all_responses=True,     # Include all possible response schemas in tool descriptions
        describe_full_response_schema=True# Include full JSON schema in tool descriptions
    )
mcp.mount()

if __name__ == "__main__":
    uvicorn.run(app, host='0.0.0.0', port=8001)